package Test1;

public class Question2 {
}

class Vehicel{
    private int speed;
    private String size;

    public void move(){
        System.out.println("Im moving");
    }

    public int getSpeed() {
        return speed;
    }

    public void setSpeed(int speed) {
        System.out.println("now im running with "+speed+" per hour");
    }

    public void speedUp(){
        Vehicel v = new Vehicel();
        v.setSpeed(1000);
    }

    public void speedDown(){
        Vehicel v = new Vehicel();
        v.setSpeed(20);
    }

    public static void main(String[] args) {
        Vehicel v = new Vehicel();
        v.move();
        v.speed=100;
        v.size="50/m^3";
        System.out.println("the initial speed is "+v.speed+" and my size is "+v.size);
        v.speedUp();
        v.speedDown();
    }

}